#! /bin/bash
[ ! -e /conda/envs/yolo ] && conda create -n yolo python=3.10 -y
echo conda yolo det OK!
source activate yolo
[ ! -e /root/code/mmyolo ] && git clone https://gitee.com/liuwake/mmyolo.git /root/code/mmyolo
cd /root/code/mmyolo 
pip install torch==2.0.1+cu117 torchvision==0.15.2+cu117 torchaudio==2.0.2 torchtext==0.15.2 \
    -f https://mirror.sjtu.edu.cn/pytorch-wheels/cu117/?mirror_intel_list \
    -f https://download.pytorch.org/whl/cu117/torch_stable.html
pip install -U openmim && mim install -e .  "numpy~=1.26" "albumentations==1.3.1"
